package com.qianfeng.app;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;

@EnableAutoConfiguration
@ComponentScan(basePackages = { "com.qianfeng.controller" })
public class SpringApp extends SpringBootServletInitializer {
	public static void main(String[] args) {
		SpringApplication.run(SpringApp.class, args);
	}

	@Override  
	protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) { 
		// TODO Auto-generated method stub
		return builder.sources(SpringApp.class);
	}

}









